﻿using System.Web.SessionState;

namespace CodeContrib.Web
{
	public static class SessionExtensions
	{
		public static bool TryRemove(this HttpSessionState session, string key)
		{
			if (session[key] != null)
			{
				session.Remove(key);

				return true;
			}

			return false;
		}
	}
}